<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>activation</title>
  <style>
    a{
      text-decoration: none;
    }
    .email {
      width: 500px;
      height: 550px;
      margin: 100px auto;

    }

    .logoImage {
      width: 200px;
      height: 200px;
      margin: 0 auto;
    }

    .logoImage img {
      width: 100%;
    }

    .welcome {
      font-family: '微软雅黑';
      font-weight: 700;
      font-size: 20px;
      text-align: center;
    }

    .content {
      margin-top: 50px;
    }

    .clickActivation {
      width: 120px;
      border: 1px solid rgb(255, 123, 0);
      padding: 6px;
      margin-top: 20px;
      margin-bottom: 5px;
    }

    .activation {
      display: block;
      background-color: rgb(255, 123, 0);
      color: white;
      border: 0;
    }
    
    .registrationRegulations a{
      font-size: 10px;
      color: rgb(17, 168, 168);
    }
    .footer{
      width: 470px;
      font-family: '微软雅黑';
      color: rgba(0,0,0,0.4);
      font-size: 10px;
      margin-top: 20px;
      display: none;
    }
    .callout{
      font-family: '微软雅黑';
      font-size: 15px;
      margin-top: 20px;
      width: 450px;
      padding-bottom: 5px;
      border-bottom: 1px solid rgba(0,0,0,0.4);
    }
    
  </style>
</head>

<body>
  <div class="email">

    <div class="logoImage" align="center">
      <img width="300" src="https://realhole.pengdong.top/logo.jpg" alt="">
    </div>

    <div class="welcome">
      <span>Welcome to RealTree!</span>
    </div>

    <div class="content">
      <span>尊敬的用户:您好！</span>
      <br>
      <br>
      <span>您正在进行注册邮箱账号操作，请点击下列按钮进行账号注册激活</span>
      <div class="clickActivation ">
          <a th:href="@{${activationUrl}}">
              <input type="button" value="confirm activation" class="activation">
          </a>
      </div>
      <a th:text="${activationUrl}" th:href="@{${activationUrl}}"> </a>
      <p th:text="${activationUrl}"></p>
    </div>
    <div class="registrationRegulations">
      <a href="javascript:;">《树洞用户服务协议》</a>
      <a href="javascript:;" class="activeClick">《查看注意事项》</a>
  </div>
    <div class="footer">
      <span>注意:此操作可能会修改您的密码，登陆邮箱或绑定手机，如非本人操作，请及时登陆并修改密码以保证安全</span>
      <br>
      <span>(工作人员不会向你索要此验证码，请勿泄露</span>
    </div>
    <div class="callout ">
      <span>此为系统邮件，请勿回复。请保管好您的邮箱，避免被他人使用</span>
      <br>
      <span>Real树洞 网络科技团队</span>
    </div>
  </div>
  <script>
    var noticeValue = document.querySelector('.activeClick')
    var valueActive = document.querySelector('.footer')
    var submitbutton = document.querySelector('.activation')
    var activeshow = 'block'
    var activehidden = 'none'
    var activeclick = 0
    noticeValue.onclick = function() {
      if(activeclick%2==0)
      {
        valueActive.style.display= activeshow
        activeclick++
      }
      else 
      {
        valueActive.style.display = activehidden
        activeclick++
      }
    }

    submitbutton.onclick = function () {
        console.log("链接激活中")
    }
   
  </script>
</body>

</html>